@@ -133,12 +133,18 @@ public static string GetDefaultIcon()
133
133
public static readonly string HelpForRegisterFail =
134
134
$ "The application shortcut for '{{0}}' '{{1}}' already existed.{ NewLine } ";
135
135
136
+ public static readonly string HelpForAttributionText =
137
+ $ "Argument -a requires 1 value: <text string>.{ NewLine } " +
138
+ $ "Example: -a \" Via SMS\" { NewLine } ";
139
+
136
140
//Help text
137
- public static readonly string HelpText =
141
+ public static string GetHelpText ( )
142
+ {
143
+ return
138
144
$ "Create a send notifications.{ NewLine } { NewLine } " +
139
145
$ "Usage: notifier <command>{ NewLine } { NewLine } " +
140
146
$ "Commands:{ NewLine } { NewLine } " +
141
- ( IsWindowsDesktopApp ?
147
+ ( IsWindowsDesktopApp ?
142
148
$ "[-r] <appId string><appName string> Registers notifier into the Windows machine.{ NewLine } " : string . Empty ) +
143
149
$ "[-t] <title string> Title is displayed on the first line of the notification.{ NewLine } " +
144
150
$ "[-m] <message string> Message is displayed wrapped below the title of the notification.{ NewLine } " +
@@ -152,18 +158,20 @@ public static string GetDefaultIcon()
152
158
$ "[-d] <short|long> Determines how long to display the notification for. Default is 'short'.{ NewLine } " : string . Empty ) +
153
159
$ "[-appID] <appID string> Used to display the notification.{ NewLine } " +
154
160
( IsUwpApp ?
155
- $ "[-i] <ID string, Text string, Place Holder Text string> Display inputs.{ NewLine } " : string . Empty ) +
156
- ( IsUwpApp ?
157
- $ "[-b] <ID string, Text string> Display buttons.{ NewLine } " : string . Empty ) +
158
- ( IsUwpApp ?
159
161
$ "[-l] <image URI> URI for a picture file to be displayed with the notification.{ NewLine } " : string . Empty ) +
160
162
$ "[-n] <appID string> Returns Notifications setting status for the application. Return values: Enabled, Disabled or Unknown.{ NewLine } " +
161
163
$ "[-k] Returns Notifications setting status for the system. Return values: Enabled or Disabled.{ NewLine } " +
164
+ ( IsUwpApp ?
165
+ $ "[-b] <ID string, Text string> Display buttons.{ NewLine } " : string . Empty ) +
166
+ ( IsUwpApp ?
167
+ $ "[-i] <ID string, Text string,{ NewLine } Place Holder Text string> Display inputs.{ NewLine } " : string . Empty ) +
162
168
$ "[-close] <ID string> Closes notification. In order to be able to close a notification,{ NewLine } " +
163
169
$ " the parameter -w must be used to create the notification.{ NewLine } " +
170
+ ( IsUwpApp ?
171
+ $ "[-a] <text string> Attribution text is displayed at the bottom of the notification.{ NewLine } " : string . Empty ) +
164
172
$ "[-v] Displays version information.{ NewLine } " +
165
173
$ "[-?] Displays this help.{ NewLine } " +
166
- $ "[-help] Displays this help.{ NewLine } " +
174
+ $ "[-help] Displays this help.{ NewLine } { NewLine } " +
167
175
$ "Exit Codes: Failed -1, Success 0, Close 1, Dismiss 2, Timeout 3.{ NewLine } { NewLine } " +
168
176
$ "Examples:{ NewLine } { NewLine } " +
169
177
$ "notifier -t \" Hello World!\" { NewLine } " +
@@ -173,5 +181,6 @@ public static string GetDefaultIcon()
173
181
( IsUwpApp ?
174
182
$ "notifier register com.appvnext.windows-notifier appvnext-windows-notifier{ NewLine } " : string . Empty ) +
175
183
$ "{ NewLine } ";
184
+ }
176
185
}
177
- }
186
+ }
0 commit comments