#715 closed defect (fixed)
Missing options information
Reported by: | bewst | Owned by: | davidsarah |
---|---|---|---|
Priority: | major | Milestone: | 1.8β |
Component: | code-frontend-cli | Version: | 1.4.1 |
Keywords: | docs usability | Cc: | |
Launchpad Bug: |
Description
I think the --help and especially the online docs for the tahoe command are way too lean. There's not even any documentation I can find of the --base-dir option; I had to crawl the code for it!
Note: if the docs were in the wiki, I'd have made that correction myself.
Attachments (2)
Change History (26)
comment:1 Changed at 2009-12-04T05:37:41Z by davidsarah
- Component changed from documentation to code-frontend-cli
- Keywords docs cp usability added
- Milestone changed from undecided to 1.6.0
comment:2 Changed at 2009-12-04T05:38:11Z by davidsarah
- Keywords cp removed
comment:3 Changed at 2009-12-28T00:31:53Z by davidsarah
- Owner changed from somebody to davidsarah
comment:4 Changed at 2010-01-10T03:48:36Z by davidsarah
Oops, that change breaks the checking that --basedir is provided for subcommands that have no default basedir. Please ignore while I fix it.
comment:5 Changed at 2010-01-10T05:28:20Z by davidsarah
- Keywords review-needed test added
No unit tests for the change to basedir behaviour yet.
comment:6 Changed at 2010-01-10T06:05:31Z by davidsarah
The diff also implements #890.
comment:7 Changed at 2010-01-10T06:07:56Z by davidsarah
Sample of new options text:
$ tahoe --help Usage: tahoe <command> [command options] Options: -q, --quiet Operate silently. -V, --version Display version numbers and exit. --version-and-path Display version numbers and paths to their locations and exit. -C, --basedir= Specify the base directory of the node to be used. [default for most commands: C:\Users\David/.tahoe] --help Display this help and exit.
comment:8 follow-up: ↓ 9 Changed at 2010-01-12T00:36:43Z by terrell
there is a forward slash in the sample above ( \David/.tahoe )
Changed at 2010-01-12T04:55:24Z by davidsarah
Diff for source:src/allmydata/scripts/common.py to show --basedir option with absolute path for default basedir
comment:9 in reply to: ↑ 8 Changed at 2010-01-12T04:56:41Z by davidsarah
- Keywords review-needed removed
comment:10 Changed at 2010-01-26T15:43:59Z by zooko
- Milestone changed from 1.6.0 to eventually
comment:11 Changed at 2010-02-01T19:42:48Z by davidsarah
- Milestone changed from eventually to 1.7.0
comment:12 Changed at 2010-03-12T04:09:51Z by davidsarah
- Status changed from new to assigned
comment:13 Changed at 2010-03-13T00:24:03Z by davidsarah
I'll modify the patch to also show in the help how the basedir is arrived at, thus fixing #985.
comment:14 Changed at 2010-05-08T20:47:02Z by zooko
Is this ticket ready for review?
comment:15 Changed at 2010-06-12T20:55:50Z by davidsarah
- Milestone changed from 1.7.0 to 1.7.1
comment:16 Changed at 2010-07-17T03:56:15Z by davidsarah
- Milestone changed from 1.7.1 to 1.8β
Changed at 2010-07-22T01:07:56Z by davidsarah
comment:17 follow-up: ↓ 24 Changed at 2010-07-22T01:59:04Z by davidsarah
- Keywords test-needed news-needed review-needed added; test removed
attachment:basedir-option-improvements.dpatch does the following:
- add -d and --node-directory as a synonym for --basedir, in the commands that didn't already support it. This fixes #188 and #706 (but by making -d the global option).
- tahoe create-key-generator now works consistently with the other commands that take basedir arguments (#772).
- tahoe --help (and the subcommand help) now documents the -d option and gives the absolute path of the default basedir (#715).
- on Windows, the default basedir is ~/.tahoe, like on other platforms, unless overridden by the registry (#890).
This patch depends on the one for #1108.
Known bugs:
- tahoe create-key-generator --help documents a --multiple option that isn't actually valid.
- the description of the --basedir option in the subcommand help should just say "Same as --node-directory .".
- on Windows, backslashes in the default basedir path displayed in the help are doubled unnecessarily; see #1135.
comment:18 Changed at 2010-07-23T05:11:20Z by zooko
- Keywords easy added
Why does this ticket have the "test-needed" flag and also the "review-needed" flag?
comment:19 Changed at 2010-07-23T05:33:04Z by zooko
- Keywords review-needed removed
Removing "review-needed" so that people who search for review-needed will find only tickets that are actionable for them. (This ticket is waiting for David-Sarah to explain what they mean by "test-needed".)
comment:20 Changed at 2010-08-02T00:33:21Z by davidsarah
Don't use this patch; use the one attached to #188.
(What I meant by putting "test-needed" and "review-needed" in the flags is that it needs a design review, even though there are no tests yet. But Zooko and I agreed not to use "review-needed" for that.)
comment:21 Changed at 2010-08-02T04:49:34Z by david-sarah@…
In [4614/ticket798]:
comment:22 Changed at 2010-08-08T00:52:35Z by davidsarah
- Keywords test-needed news-needed easy removed
- Resolution set to fixed
- Status changed from assigned to closed
Applied to trunk in f952532f0822fbe7 54a9ba8232e2b8e9 a7c474a09893b9aa.
comment:23 Changed at 2010-08-08T00:57:49Z by davidsarah
NEWS changes were in 0ae556c00ac79d4f 2b15f35b867cebbd.
comment:24 in reply to: ↑ 17 Changed at 2010-08-08T01:44:14Z by davidsarah
Replying to davidsarah:
Known bugs:
- tahoe create-key-generator --help documents a --multiple option that isn't actually valid.
It is now valid.
- the description of the --basedir option in the subcommand help should just say "Same as --node-directory .".
- on Windows, backslashes in the default basedir path displayed in the help are doubled unnecessarily; see #1135.
These were also fixed. The help for tahoe start --help, for instance, includes something like:
-C, --basedir= Same as --node-directory. -d, --node-directory= Specify which Tahoe node directory should be used. [default for most commands: 'D:\cygwin\home\David\.tahoe']
and for tahoe run --help:
-C, --basedir= Same as --node-directory. -d, --node-directory= Specify the directory of the node to be run. [default, for 'tahoe run' only: current directory]
(It is ugly that the default for tahoe run is different, but I didn't want to break compatibility.)
See also #742 (about tahoe cp --help).