Fossil SCM
Make "help" command smarter to reduce the need for "-a" option
c4677b052bd1065…
· opened 11 years, 8 months ago
- Type
- Feature_Request
- Priority
- Low
- Severity
- Minor
- Resolution
- Not_A_Bug
- Subsystem
- —
- Created
- Aug. 6, 2014 1:25 a.m.
Two points.
-
The
helpcommand (short version) should list the commands obviously associated to the ones it list. Ex.fossil helplistopenbut does not listclosewhich is only listed byhelp -a. That's confusing. -
Alternatively, the
helpcommand (short version) could be aware of the local state. Ex. in a directory which is not that of an opened repository, it could listopenonly, and listclose(and notopenany‑more) from the directory of an opened directory.
Comments (2)
Two points.
-
The
helpcommand (short version) should list the commands obviously associated to the ones it list. Ex.fossil helplistopenbut does not listclosewhich is only listed byhelp -a. That's confusing. -
Alternatively, the
helpcommand (short version) could be aware of the local state. Ex. in a directory which is not that of an opened repository, it could listopenonly, and listclose(and notopenany‑more) from the directory of an opened directory.
The second point sounds good, but doing that will probably not allow us to remove as many commands as you'd think due to the -R flag.
For example, a fossil conf sync skin command will fail if you're not in a checkout directory, but you can add -R /path/to/repo.fossil to tell it which repo's skin you want synchronized.