Differences between revisions 1 and 2
Revision 1 as of 2015-06-26 10:44:44
Size: 566
Comment: creating a barebone for the page.
Revision 2 as of 2015-08-19 00:11:54
Size: 1286
Comment: error message
Deletions are marked like this. Additions are marked like this.
Line 38: Line 38:
 * Error message should fit on *a single* 80 characters line,
 
 * a hint should be provided to point the user toward a solution (78 chars max),

{{{
abort: uncommitted changes
("use 'hg status' to list changes")
}}}

 * error message should **include the offending item** when possible,

{{{
abort: push creates new remote head 02793c56c8d3!
(merge or see "hg help push" for details about pushing new heads)
}}}

 * error should not blindly point to dangerous operation (eg: ``--force``) point to help topic if advise//explanation cannot be provided in the hint space,

 * error message should not be punctuated as a sentence. no leading capital, no final dot, (some existing message have a "!").

Note:

This page is primarily intended for developers of Mercurial.

Coding Style

How to make build a consistent user experience.

/!\ This is a early draft to be filled and reviewed more widely.

1. commands

1.1. adding new commands

1.2. naming commands

2. argument

2.1. naming arguments

2.2. common arguments

3. config

4. adding new sections

5. adding new options

6. naming config options

7. output

7.1. general output

7.2. error message

  • Error message should fit on *a single* 80 characters line,
  • a hint should be provided to point the user toward a solution (78 chars max),

abort: uncommitted changes
("use 'hg status' to list changes")
  • error message should **include the offending item** when possible,

abort: push creates new remote head 02793c56c8d3!
(merge or see "hg help push" for details about pushing new heads)
  • error should not blindly point to dangerous operation (eg: --force) point to help topic if advise//explanation cannot be provided in the hint space,

  • error message should not be punctuated as a sentence. no leading capital, no final dot, (some existing message have a "!").

7.3. color

8. help text

UIGuideline (last edited 2017-08-11 08:52:28 by DavidDemelier)